package com.example.treeHole.dao;

import com.example.treeHole.vo.UserInfo;
import com.example.treeHole.vo.dto.UserInfoDto;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapper {
    int deleteByPrimaryKey(String userId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    List<UserInfo> findAll();

    List<UserInfo> findBySearch(UserInfoDto userInfo);

    UserInfo findByUNAndPW(@Param("userName") String userName, @Param("passWord")String passWord);


    String findVUById(String currentId);
}